home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / GNU Diff Sources / README.Mac < prev   
Encoding:
Text File  |  1994-11-08  |  2.1 KB  |  47 lines  |  [TEXT/ALFA]

  1.  
  2. Source 
  3. =============================================================================== 
  4. This code is evidently based on a port to the Mac via the QUED folk.  
  5. However, the GNU copyleft, under which source to GNU's 'diff' is 
  6. distributed, requires anyone who modifies and redistributes GNU sources to 
  7. make their changes available as well.  Therefore, to my knowledge, this 
  8. redistribution does not violate any copyrights of QUED.
  9.  
  10.  
  11.  
  12. What I have done
  13. ===============================================================================
  14. I hacked these sources to give 'diff' a Apple Event interface instead of 
  15. the previous dialog interface. 'diff' now processes a single doscript 
  16. ('DOSC') event and quits. The doscript event consists of the command line 
  17. arguments that would have been passed to 'diff' had this been on Unix. 
  18. There's also a hack to allow filenames to be delimited by double quotes.
  19. 'diff' is now used as a diff tool by the Alpha text editor.
  20.  
  21.  
  22. What I have not done 
  23. =============================================================================== 
  24. Just about everything.  In order to get this source to compile you will 
  25. need to find the POSIX library headers.  As far as I know, this library was 
  26. most recently modified by Ray Johnson (currently works with John Ousterhout 
  27. at Sun Labs).  Many incorrect inputs will cause 'diff' to crash, almost all 
  28. will cause it to at least exit without informing anyone of the reason.  The 
  29. current version is not robust! However, if you supply it with correct 
  30. parameters, it *seems* to work...
  31.  
  32. Only one event is executed because 'diff' is not designed to handle 
  33. multiple sets of inputs.  Much hacking is needed.  Error handling does not 
  34. work well because the original source just printed to stderr and exited 
  35. whenever something bad happened.  In order to return useful information on 
  36. error, exits have to be turned into error-code returns, and each routine 
  37. that calls another that may exit must check the func's return value and 
  38. return an error code itself. 
  39.  
  40.  
  41. What you can do
  42. ===============================================================================
  43. Fix all of the above, and redistribute the source.
  44.  
  45.  
  46. Pete Keleher
  47.